package br.ufal.tci.nexos.arcolive.persistence;

public class GenericMetaDataColumn {

	private String name;
	private String type;
	
	public GenericMetaDataColumn(String name, String type) {
		this.name = name;
		this.type = type;
	}

	public String getName() {
		return name;
	}

	public String getType() {
		return type;
	}
	
	public boolean equals(Object aGenericMetaData) {
		if ((aGenericMetaData != null) && (aGenericMetaData instanceof GenericMetaDataColumn)) {
			GenericMetaDataColumn column = (GenericMetaDataColumn) aGenericMetaData;
			if (this.name.equalsIgnoreCase(column.getName()) && this.type.equalsIgnoreCase(column.getType())) {
				return true;
			}
		}
		return false;
	}
	
}
